package com.example.user.mapper;


import com.example.user.entity.ProductReview;
import com.example.user.request.ProductDetailInfoRequest;
import com.example.user.response.ProductDetailInfoResponse;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ProductDetailInfoMapper {


    List<ProductDetailInfoResponse> getProductInfoDetail(@Param("productId") Integer productId);

    int addCart(@Param("productDetailInfoRequest") ProductDetailInfoRequest productDetailInfoRequest,@Param("quantity")Integer quantity);

    int collectShop(@Param("producId") int productId);

    List<ProductReview> getReivews(@Param("productId") int productId);

    int addComment(@Param("productReview") ProductReview productReview);
}
